import { HttpClient } from 'ronds-react-ui';

/**
 * 获取数据集信息
 * @param url
 */
export async function getDataSource(url: string) {
  const res = await HttpClient.fetch<any>(url, { method: 'get' });
  if (res.successed) {
    return res.data;
  }
  return [];
}
